-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Conversation
Thanks for fixing this 💯 - Will review shortly |
@@ -206,4 +210,5 @@ | |||
fname) | |||
good-contents (slurp "test/good-test-ndarray.clj") | |||
contents (slurp fname)] | |||
(is (= good-contents contents))))) | |||
;; FIXME | |||
#_(is (= good-contents contents))))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not understand why this one fails for me...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's a new line thing - I have a fixed in the follow up pr
@@ -70,8 +70,8 @@ | |||
(util/option->value))))) | |||
|
|||
(deftest test-keyword->snake-case | |||
(is (= [:foo-bar :foo2 :bar-bar]) | |||
(util/keyword->snake-case [:foo_bar :foo2 :bar-bar]))) | |||
(is (= ["foo_bar" "foo2" "bar_bar"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure this is the test you wanted to write in the first place
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to test the base functionality. It was one of those cases where the dev generator was written initially without any tests and then I circled back and put tests in, so the tests don't make as much sense as if they would have if it was initially written with that intent.
@mxnet-label-bot add [Clojure, Test, pr-awaiting-review] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for finding and fixing this and making it better 💯
There will be a follow up pr to fix the commented out tests
@@ -86,18 +86,21 @@ | |||
(is (= "LRN" (-> lrn-info vals ffirst :name str))))) | |||
|
|||
(deftest test-symbol-vector-args | |||
(is (= `(if (clojure.core/map? kwargs-map-or-vec-or-sym) | |||
;; FIXME | |||
#_(is (= `(if (clojure.core/map? kwargs-map-or-vec-or-sym) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to do a follow-up PR to fix all the FIXME tests for you to review :)
@@ -206,4 +210,5 @@ | |||
fname) | |||
good-contents (slurp "test/good-test-ndarray.clj") | |||
contents (slurp fname)] | |||
(is (= good-contents contents))))) | |||
;; FIXME | |||
#_(is (= good-contents contents))))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's a new line thing - I have a fixed in the follow up pr
@@ -70,8 +70,8 @@ | |||
(util/option->value))))) | |||
|
|||
(deftest test-keyword->snake-case | |||
(is (= [:foo-bar :foo2 :bar-bar]) | |||
(util/keyword->snake-case [:foo_bar :foo2 :bar-bar]))) | |||
(is (= ["foo_bar" "foo2" "bar_bar"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to test the base functionality. It was one of those cases where the dev generator was written initially without any tests and then I circled back and put tests in, so the tests don't make as much sense as if they would have if it was initially written with that intent.
* fix ndarray-test namespace * fix symbol-test * fix operator_test * fix imageclassifier_test * fix rest of test files and add fixme pragmas * fix util-test * [clojure][tests] remove keyword->snake-case duplicate
* fix ndarray-test namespace * fix symbol-test * fix operator_test * fix imageclassifier_test * fix rest of test files and add fixme pragmas * fix util-test * [clojure][tests] remove keyword->snake-case duplicate
* fix ndarray-test namespace * fix symbol-test * fix operator_test * fix imageclassifier_test * fix rest of test files and add fixme pragmas * fix util-test * [clojure][tests] remove keyword->snake-case duplicate
* fix ndarray-test namespace * fix symbol-test * fix operator_test * fix imageclassifier_test * fix rest of test files and add fixme pragmas * fix util-test * [clojure][tests] remove keyword->snake-case duplicate
Description
Fixes some clojure tests that were not being run because the
is
macro fromclojure.test
was returning true.Tests were defined like so
instead of like this
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.
Changes
Comments